import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'
// import pageContent from '@/layouts/pageContent'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '管理文件',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'manageFile',
          name: '管理文件',
          meta: {
            icon: 'file-ppt'
          },
          component: () => import('@/pages/manageFile')
        }
        ,
        {
          path: 'migrantWages',
          name: '农民工工资',
          meta: {
            icon: 'dashboard',
          },
          component: BlankView,
          children: [
            {
              path: 'inspectionRecord',
              name: '检查记录',
              component: () => import('@/pages/migrantWages/inspectionRecord'),
            },
            {
              path: 'assessmentRecord',
              name: '考核记录',
              component: () => import('@/pages/migrantWages/assessmentRecord'),
            },
            {
              path: 'protectionInfo',
              name: '维权信息',
              component: () => import('@/pages/migrantWages/protectionInfo'),
            }
          ]
        },
        // {
        //   path: 'parent2',
        //   name: '列表1',
        //   meta: {
        //     icon: 'form'
        //   },
        //   component: PageView,
        //   children: [
        //     {
        //       path: '列表2',
        //       name: '演示页面2',
        //       component: () => import('@/pages/demo'),
        //     }
        //   ]
        // },
        // {
        //   path: 'exception',
        //   name: '异常页',
        //   meta: {
        //     icon: 'warning',
        //   },
        //   component: BlankView,
        //   children: [
        //     {
        //       path: '404',
        //       name: 'Exp404',
        //       component: () => import('@/pages/exception/404')
        //     },
        //     {
        //       path: '403',
        //       name: 'Exp403',
        //       component: () => import('@/pages/exception/403')
        //     },
        //     {
        //       path: '500',
        //       name: 'Exp500',
        //       component: () => import('@/pages/exception/500')
        //     }
        //   ]
        // },
        // {
        //   name: '验权页面',
        //   path: 'auth/demo',
        //   meta: {
        //     icon: 'file-ppt',
        //     authority: {
        //       permission: 'form',
        //       role: 'manager'
        //     },
        //     component: () => import('@/pages/demo')
        //   }
        // }
      ]
    }
  ]
}

export default options
